/**
 * 代理配置
 */
const defaultSettings = require('./setting')
const gateway=defaultSettings.proxyUrl
export default{
    proxy: {
        '/admin/': {
            target: gateway,
            changeOrigin: true,
            pathRewrite: {
                '^/admin': '/admin'
            }
        },
        '/auth/': {
            target: gateway,
            changeOrigin: true,
            pathRewrite: {
                '^/auth': '/auth'
            }
        },
        '/websocket/': {
            target: gateway,
            changeOrigin: true,
            pathRewrite: {
                '^/websocket': '/websocket'
            }
        }
    }
}